﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="WaitInStorageList.aspx.cs" Inherits="Ewts.Storage.WaitInStorageList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <h2>待入库列表</h2>

    归属地
    <asp:DropDownList ID="dropBelong" CssClass="bcity" runat="server" >

    </asp:DropDownList>
    <!--一个表单-->
    处理地：
    <asp:DropDownList ID="dropGraphics" CssClass="gcity"  runat="server" >
    </asp:DropDownList>
<br />
<div class="shadow3"> 
   
    <table id="tbColl" class="display" cellpadding="0" cellspacing="0" border="0" >
 
      <thead>
 
        <tr>
         <th>序号</th>
            <th>Load号</th>
             <th>归属地</th>
              <th>处理地</th>
            <th>Load总重量</th>
            <th>领料单号</th>
            <th>返回单号</th>
            <th>Load已处理总重量</th>
            <th>Load未处理重量</th>
            <th>入库日期</th>
            <th>领料单总重量</th>
            <th>领料单已入库总重量</th>
            <th>领料单未入库总重量</th>
           <th>出库时间</th>
             <th>操作</th>
 
        </tr>
 
      </thead>
 
      <tbody>
 
         <asp:Repeater ID="rept" runat="server" >

  <ItemTemplate>
 
    <tr>
      <td><%# Container.ItemIndex+1 %></td>
      <td><%# Eval("outs_vload")%></td>
     <td><%# Eval("indepart")%></td>
     <td><%# Eval("outdepart")%></td>
      <td><%# Eval("load_totalweight")%></td>
      <td><%# Eval("outs_no")%></td>
      <td><%# Eval("ins_no") %></td> 
      <td><%# Eval("load_finishweigth")%></td>  
      <td><%# Eval("load_waitweight")%></td> 
      <td><%# Eval("ins_date") %></td> 
      <td><%# Eval("outs_toalweight")%></td>
      <td><%# Eval("outs_finishweight")%></td>
      <td><%# Eval("outs_waitweight")%></td>
      <td><%# Eval("outStorageDate")%></td>
      <td><%# GetIDtype(Eval("outs_type").ToString(),Eval("outs_id").ToString(),Eval("out_status").ToString()) %></td>
 
    </tr>
 
  </ItemTemplate>
 
    </asp:Repeater>
  
    </tbody>
 
    </table>
 

</div>
    <script type="text/javascript">

     $(document).ready(function () {
         var mtable = $('#tbColl').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
            "bJQueryUI": true,
            "sPaginationType": "full_numbers",
            'bPaginate': true,
            "bProcessing": true,
            "iDisplayLength": 25,
            "bDestory": true,
            "columns": [
            { "data": "rowno" },
            { "data": "outs_vload" },
            { "data": "indepart" },
            { "data": "outdepart" },
            { "data": "load_totalweight" },
            { "data": "outs_no" },
            { "data": "ins_no" },
            { "data": "load_finishweigth" },
            { "data": "load_waitweight" },
            { "data": "ins_date" },
            { "data": "outs_toalweight" },
            { "data": "outs_finishweight" },
            { "data": "outs_waitweight" },
            { "data": "outStorageDate" },
            { "data": "operurl" }
            ],
            "sAjaxSource": "/ashx/waitinstorage.ashx?rtype=ins&gcity=" + encodeURI($(".gcity").val()) + "&bcity=" + encodeURI($(".bcity").val()),
            "bServerSide": true
            });

            $('.bcity').change(function () {
                mtable.fnReloadAjax("/ashx/waitinstorage.ashx?rtype=ins&gcity=" + encodeURI($(".gcity").val()) + "&bcity=" + encodeURI($(".bcity").val()));
            });

            
            $('.gcity').change(function () {
                mtable.fnReloadAjax("/ashx/waitinstorage.ashx?rtype=ins&gcity=" + encodeURI($(".gcity").val()) + "&bcity=" + encodeURI($(".bcity").val()));
            });

       });  

      
    
 
</script>
</asp:Content>
